package com.changli07._interface.exer3;

public class ElectricVehicle extends Vehicle implements IPower{
    public ElectricVehicle() {
    }

    public ElectricVehicle(String brand, String color) {
        super(brand, color);
    }
    public void run(){
//        System.out.println("ElectricVehicle run");
//        System.out.println(this.getBrand());
//        System.out.println(this.getColor());
        System.out.println("电动车通过电力驱动行驶");
    }
    public void power(){
        System.out.println("充电");
    }

}
